<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员信息</title>
<include file="Public/header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript">
$(function(){
    <if condition="$data.user_name eq ''">
       $("#username").val('');
       $("#nickname").val('');
       $("#password").val('');
    </if>
    $("#myform").validate({
        rules: {
                 username : {required: true,minlength : 4,
                     remote : {url:"<{:U('checkName')}>",type:"POST",data:{ username: function(){ return $("#username").val(); }}
                     },
                },
                <if condition="$data['user_id'] eq ''">
                password : {required: true,},
                </if>

        },
        messages: {
                username : {required: '请输入用户名！',minlength: '用户名不能小于4个字符！',remote: '用户名已存在！',},
                <if condition="$data['user_id'] eq ''">
                password : {required: '请输入密码！',},
                </if>
       },
    })
})

</script>
</head>


<body>
<div>
   
  
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
            	<include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
            </div>
            <div class="list_vmall_rig">
            	<ul class="breadcrumb">
                    <li><a href="<{:U('index')}>">会员管理</a> </li>
                    <li class="active"><if condition="$data.user_name eq ''">会员信息<else />会员信息</if></li>
                </ul>
                <div class="list_vmall_bort">
                    <form id="myform" method="post" action="<{:U('insert')}>">
                        <input type="hidden" name="id" value="<{$data.user_id}>">
                    	<div class="vmall_padi">
                           
                           
                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">用户名</label>
                                <div class="vmaal_rols" style="margin-top:8px;">
                                <if condition="$data.user_name eq ''">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="username" name="user_name" value="<{$data.user_name}>">
                                <else />
                                  <{$data.user_name}> 
                                </if>    
                                </div>
                            </div>

                            <!--<div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">登陆密码</label>
                                <div class="vmaal_rols">
                                    <input type="password" class="vmaal_sinw1 input_a1 int_wod" id="password" name="password" >
                            
                                </div>
                            </div>-->

                             <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">昵称</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod" id="nickname" name="nickname" value="<{$data.nickname}>">
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员姓名</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="name" value="<{$data.name}>">
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员电话</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="phone" value="<{$data.phone}>">
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员邮箱</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="email" value="<{$data.email}>">
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员性别</label>
                                <div class="vmaal_rols">
                                    <input type="radio"  name="sex" value="1" <if condition="$data['sex'] eq 1">checked="checked"</if> >男
                                    <input type="radio"  name="sex" value="2" <if condition="$data['sex'] eq 2">checked="checked"</if> >女
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员生日</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="birthday" value="<{$data.birthday}>">
                                    
                                </div>
                            </div>

                          <!--  <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员职位</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="jobtype" value="<{$data.jobtype}>">
                                    
                                </div>
                            </div>

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">会员部门</label>
                                <div class="vmaal_rols">
                                    <input type="text" class="vmaal_sinw1 input_a1 int_wod"  name="bumen" value="<{$data.bumen}>">
                                    
                                </div>
                            </div>-->


                            
 
	<input type="hidden" name="store_id"  value="<{$store_id}>" />
	 					
                           
                            <div class="vmall_cle">
                                <div class="vmaal_rols">
                                    <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确&nbsp;&nbsp;定</button>
                                </div>
                            </div>

                         </div>
                     </form> 
                </div>
                
            </div>

        </div>
        
</div>
</body>
</html>
